package com.cn.shiro_jwt_redis.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName
public class Role {

  @TableId(type = IdType.AUTO)
  private Integer roleId;
  private String roleName;
  private String roleTitle;
  private Date createTime;
  private Date updateTime;
  private Integer state;
  @TableField(exist = false)
  private List<Menu> menuList;//当前角色所对应的菜单集合
  

}
